find_package(CUDA REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})
file(GLOB_RECURSE SOURCES "*.cpp" "*.cu") # 查找源文件
add_library(gpu_library SHARED ${SOURCES}) # 添加动态库
set_target_properties(gpu_library PROPERTIES CUDA_ARCHITECTURES "75") # 设置 CUDA 架构，根据实际情况修改